import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";
import { Agreement } from "@/api/interface/agreement";

export const getAgreementContent = async () => {
  const response = await http.post<Agreement.AgreementResult>(PORT1 + "/customer/agreement");
  return response;
};

export const saveAgreementContent = async (params: Agreement.AgreementParmas) => {
  const response = await http.post<Agreement.AgreementResult>(PORT1 + "/customer/setAgreement", params);
  return response;
};
